package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.UserFeedbackDao;
import io.wdb.modules.generator.generator.entity.UserFeedbackEntity;
import io.wdb.modules.generator.generator.service.UserFeedbackService;



@Service("userFeedbackService")
public class UserFeedbackServiceImpl implements UserFeedbackService {
	@Autowired
	private UserFeedbackDao userFeedbackDao;
	
	@Override
	public UserFeedbackEntity queryObject(Long id){
		return userFeedbackDao.queryObject(id);
	}
	
	@Override
	public List<UserFeedbackEntity> queryList(Map<String, Object> map){
		return userFeedbackDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userFeedbackDao.queryTotal(map);
	}
	
	@Override
	public void save(UserFeedbackEntity userFeedback){
		userFeedbackDao.save(userFeedback);
	}
	
	@Override
	public void update(UserFeedbackEntity userFeedback){
		userFeedbackDao.update(userFeedback);
	}
	
	@Override
	public void delete(Long id){
		userFeedbackDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		userFeedbackDao.deleteBatch(ids);
	}
	
}
